home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / bc_ti.zip / TI646.ASC < prev    next >
Text File  |  1992-02-25  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Borland C++                            NUMBER  :  646
  9.   VERSION  :  2.0
  10.        OS  :  PC DOS
  11.      DATE  :  February 25, 1992                        PAGE  :  1/2
  12.  
  13.     TITLE  :  fstream-File Pointer-DOS Handle Equivalency Table
  14.  
  15.  
  16.  
  17.  
  18.   The  following  provides,   in  tabular  format,  the  equivalent
  19.   functions between FILE pointers,  C++  file  Streams and DOS file
  20.   handles.
  21.  
  22.   fstreams consist  of  fstreams,  ifstreams  and  ofstreams.  FILE
  23.   pointers are  obtained  from  fopen,  freopen,  fdopen  and other
  24.   functions. DOS  handles are obtained from open, _open, create and
  25.   others.
  26.  
  27.   FILE *          FSTREAM              HANDLE           Notes:
  28.   ====================================================================
  29.   fopen          fp.open or           open
  30.                  constructor
  31.  
  32.   fseek          fp.seekp             lseek
  33.  
  34.   ftell          fp.tellp             tell             1.0 has bugs in
  35.                                                        the tellp family
  36.  
  37.   feof           fp.eof               eof
  38.  
  39.   fread          fp.read              read
  40.  
  41.   fwrite         fp.write             write
  42.  
  43.   fileno         (fp.rdbuf())->fd()   <NA>
  44.  
  45.   use fileno     use fstrno           chsize           see below for
  46.                                                        def of fstrno
  47.  
  48.   fcloseall                           <NA>
  49.  
  50.   fdopen         fp.attach            <NA>
  51.  
  52.   ferror
  53.  
  54.   fflush         fp.sync              <NA>
  55.  
  56.   fgetc          fp.get               use read
  57.  
  58.   fgetpos        use tellp            use tell
  59.  
  60.   fsetpos        use seekp            use lseek
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  Borland C++                            NUMBER  :  646
  75.   VERSION  :  2.0
  76.        OS  :  PC DOS
  77.      DATE  :  February 25, 1992                        PAGE  :  2/2
  78.  
  79.     TITLE  :  fstream-File Pointer-DOS Handle Equivalency Table
  80.  
  81.  
  82.  
  83.  
  84.   fgets          fp.get               use read
  85.  
  86.   use fileno     use fstrno           filelength
  87.  
  88.   flushall                            <NA>
  89.  
  90.   fprintf        iomanip              <NA>
  91.  
  92.   fputc          operator <<          use write
  93.  
  94.   fputs          operator <<          use write
  95.  
  96.   freopen                             <NA>
  97.  
  98.   fscanf         operator >>          <NA>
  99.                  with iomanip
  100.  
  101.   use fileno     use fstrno           fstat
  102.  
  103.   use fileno     use fstrno           getftime
  104.  
  105.   use fileno     use fstrno           setftime
  106.  
  107.   use fileno     use fstrno           lock
  108.  
  109.   use filno      use fstrno           setmode
  110.  
  111.   setvbuf                             <NA>
  112.  
  113.   use fdopen     use attach           sopen
  114.  
  115.   use fileno     use fstrno           unlock
  116.  
  117.   ================================================================
  118.   Stream equivalent of file number:
  119.  
  120.                   #define fstrno(fp) (((fp).rdbuf())->fd())
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.